package javacommon.util;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class InitListerner implements ServletContextListener  {

	public void contextInitialized(ServletContextEvent event) {

	  ServletContext context = event.getServletContext();
	  String category = "avcd";
	  System.out.println("abcddddddddddddddd");
	  context.setAttribute("categoryTree", category); 

	}

	//你也可以有选择的重写以下方法

	public void contextDestroyed(ServletContextEvent sce) { }


}
